﻿@using System.Data
@using ZoomLa.Common
@using ZoomLa.Model
@model ZoomLa.SQLDAL.SQL.PageSetting
@{ 
    Model.cols = 5;
    Model.url = "FriendApplySend_Data";
}
@functions{
    public string GetStatus(string zstatus)
    {
        switch (DataConverter.CLng(zstatus))
        {
            //case (int)ZLEnum.ConStatus.UnAudit:
            //    return "未确认";
            case (int)ZLEnum.ConStatus.Reject:
                return "<span class='r_red'>已经拒绝</span>";
            case (int)ZLEnum.ConStatus.Audited:
                return "<span class='r_green'>已经同意</span>";
            default:
                return "暂未确认";
        }
    }
}
<table id="EGV" class="table table-striped table-bordered table-hover">
    @if (Model.itemCount > 0)
    {
        <tr><th>头像</th><th>用户名</th><th>昵称</th><th>备注</th><th>状态</th></tr>
        foreach (DataRow dr in Model.dt.Rows)
        {
            <tr class="contr">
                <td><img src="@dr["salt"]" onerror="shownoface(this)" class="img50" /></td>
                <td>@dr["UserName"]</td>
                <td>@dr["HoneyName"]</td>
                <td>@dr["Remind"]</td>
                <td>
                    @MvcHtmlString.Create(GetStatus(dr["ZStatus"].ToString()))
                </td>
            </tr>
        }
        @Html.Partial("_page",Model)
    }
    else
    {
        <tr><td colspan="5">无申请数据</td></tr>
    }
</table>
